home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
basic
/
vbptu10.zip
/
DBG.FRM
< prev
next >
Wrap
Text File
|
1994-03-02
|
3KB
|
97 lines
VERSION 2.00
Begin Form DBG
BackColor = &H00C0C0C0&
Caption = "(c) Copyright 1994 M.Brewerton"
ClientHeight = 1440
ClientLeft = 1110
ClientTop = 1485
ClientWidth = 7155
Height = 1845
Left = 1050
LinkTopic = "Form1"
ScaleHeight = 1440
ScaleWidth = 7155
Top = 1140
Visible = 0 'False
Width = 7275
Begin TextBox status
Height = 495
Left = 120
LinkItem = "textr"
LinkTopic = "vb_PTU|dbgr"
TabIndex = 0
Top = 120
Width = 6975
End
Begin Label Label1
AutoSize = -1 'True
BackColor = &H00C0C0C0&
Caption = "Sender Form Version 1.a For VB_PTU.EXE"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 13.5
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 360
Left = 360
TabIndex = 1
Top = 840
Width = 6105
End
End
Sub Form_Click ()
Call TESTDDE
End Sub
Sub Form_Load ()
On Error GoTo linkerro:
Rem ** THE VB_PTU.EXE MUST BE RUNNING BEFORE YOU **
Rem ** USE 'SHOW.DBG' IN YOUR APPLICATION **
Rem ** This line will open the DDE to between the **
Rem ** text box on this form and one in the VB_PTU app **
status.LinkMode = 1 ' automatic linking
Rem ** In case, you wish to adjust the way you send data to
Rem ** VB_PTU.EXE, you will need this data **
Rem ** LinkTopic is "VB_PTU|dgbr"
Rem ** Linkitem is "textr"
back:
Exit Sub
linkerro:
MsgBox "Unable To Setup DDE Link"
Rem ** You could place a line here using shell to load VB_PTU.EXE if not loaded **
Resume back:
End Sub
Sub status_Change ()
Rem ** SEND DATA IN DBG.STATUS TO VB_PTU.EXE **
dbg.status.LinkPoke
End Sub
Sub TESTDDE ()
If status.LinkMode = 0 Then status.LinkMode = 1
Call debugstatus("/OPENLOG=c:\new.log")
Call debugstatus("/LANON"): Call debugstatus("/LTIMEON")
Call debugstatus("About to Start FOR/NEXT Loop 5000")
For u = 1 To 5000
Call debugstatus("In U Loop " + Str$(u))
Next u
Call debugstatus("Finished Loop")
Call debugstatus("/REPORTSTATUS")
Call debugstatus("Hello")
Call debugstatus("/LOGTHISFILE=" + "c:\autoexec.bat")
Call debugstatus("/CLOSELOG")
Call debugstatus("/LANOFF"): Call debugstatus("/LTIMEOFF")
For i = 1 To 200
Next i
Call debugstatus("/APPENDLOG=c:\new.log")
Call debugstatus("Nearly Finished.")
Call debugstatus("/CLOSELOG")
End Sub